package com.itheima.day02;
/*
案例4:评定学生成绩等级
 */
import java.util.Scanner;

public class TestClassCase04 {
    public static void main(String[] args) {


        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.println("请输入学生的成绩:");
            int score = sc.nextInt();

            if (score <= 100 && score >= 0) {

                if (score <= 100 && score >= 95) {
                    System.out.println("自行车一辆");
                } else if (score <= 94 && score >= 90) {
                    System.out.println("游乐场一次");
                } else if (score <= 89 && score >= 80) {
                    System.out.println("变形金刚一个");
                } else {
                    System.out.println("挨顿揍,这座城市又多了一个伤心的人~");
                }
                return;
            } else {
                System.out.println("成绩有误!");
            }
        }
    }
}
